Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose installation ID bytes when calling inboxState (node + WASM bindings) #1473

Merged
merged 8 commits into from
Jan 6, 2025

Conversation

rygine
Copy link
Collaborator

@rygine rygine commented Jan 6, 2025

Summary

  • Added bytes field to installation data when calling inboxState on clients

Since encoded installation ID strings can't be reversed back into bytes, we need a way to expose installation bytes so that we can use them when revoking specific installations.

@rygine rygine requested review from a team as code owners January 6, 2025 20:30
@@ -231,7 +230,7 @@ impl Conversation {
installation_ids: member
.installation_ids
.into_iter()
.map(|id| ed25519_public_key_to_address(id.as_slice()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double-checking, the ID here is bytes and not string right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, should be

@rygine rygine force-pushed the rygine/bindings-bytes-to-hex branch from 8b5443b to 39d70ac Compare January 6, 2025 21:02
@rygine rygine merged commit 7f3a583 into main Jan 6, 2025
13 checks passed
@rygine rygine deleted the rygine/bindings-bytes-to-hex branch January 6, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants